<?php
	$auth = Zend_Auth::getInstance();
	$infoUser = $auth->getIdentity();
	
	$this->fullName = $infoUser->ho_ten;
	$this->groupname = $infoUser->rolename;
	
	//Cập nhật ngày đăng nhập
	$model = new Admin_Model_UsersAdminMapper();
	$model->updateLoginDate($infoUser->id);
?>
<div id="header">
	<div id="logo">
		<img src="<?php echo $this->baseUrl(PUBLIC_PATH . '/images/logo/logo.png'); ?>" alt="Logo Kênh Phòng trọ" />
	</div><!-- End #logo -->
	<div id="acc_info">
		<div>Chào 
			<div class="btn-group">
			  <a class="btn btn-info dropdown-toggle" data-toggle="dropdown" href="#">
			  	<i class="icon-user icon-white"></i>
			    <?php echo $this->fullName;?>
			    <span class="caret"></span>
			  </a>
			  <ul class="dropdown-menu">
			     <li><a href="<?php echo $this->baseUrl("/admin/profile"); ?>"><i class=" icon-eye-open"></i> Xem profile</a></li>
				 <li><a href="<?php echo $this->baseUrl("/admin/profile/edit"); ?>"><i class="icon-pencil"></i> Sửa profile</a></li>
				 <li><a href="<?php echo $this->baseUrl("/admin/profile/changepassword"); ?>"><i class="icon-lock"></i> Đổi mật khẩu</a></li>
			  </ul>
			</div>
		</div>

		<div>Chức vụ: <?php echo $this->groupname; ?></div>
		<ul style="float: left;">
			<li style="float: left;"><a class="home" href="<?php echo $this->baseUrl(''); ?>" target="_blank">Home</a></li>
			<li style="float: left;"><a class="logout" href="<?php echo $this->baseUrl("/admin/auth/logout");?>">Logout</a></li>
		</ul>
	</div><!-- End #acc_info -->
	<div class="clear"></div>
</div><!-- End #header -->
<div class="line"></div><!-- End .line -->
